package com.untour.im.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ClientType {
    WEBAPI(0, 1,1,"webApi"),
    WEB(1, 1,1,"web"),
    IOS(2, 2,2,"ios"),
    ANDROID(3, 2,2,"android"),
    WINDOWS(4, 2,3,"windows"),
    MAC(5, 2,3,"mac"),
    ;

    private int value;
    private int limitTwo;
    private int limitThree;
    private String desc;

    public static ClientType getByValue(int value) {
        for (ClientType clientType : ClientType.values()) {
            if(clientType.getValue() == value) return clientType;
        }
        return null;
    }

}
